<?php
    require_once 'config.php';
    $id=$_GET["id"];
    $sql="delete from login where id ='$id'";
    if (mysqli_query($conn,$sql)>0){
        echo "<script>alert('删除成功');location.href = 'index2.php'</script>";
        
    }
?>